import request from "@/api/request.js"

class HomeApi {
	bannerAds() {
		return request({
			url: "/lejuClient/home/bannerAds",
		})
	}

	doLogin(data) {
		return request({
			url: "/lejuClient/login/doLogin",
			method: "post",
			data
		})
	}
	
	findCategory(id) {
		return request({
			url: `/lejuClient/productCategory/findCategory/${id}`
		})
	}

	findProductList(start, limit, data) {
		return request({
			url: `/lejuClient/product/findProductList/${start}/${limit}`,
			method: "post",
			data
		})
	}
}

export default new HomeApi()
